// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_hm_rules
// * CreateDate    : 2014-06-05 18:30:01
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:01
// * LastChanger   : 2014-06-05 18:30:01
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class HmRulesTable : TableInfo
    {
		public const string C_TableName = "hm_rules";
		
		public const string C_ruleid = "ruleid";
		public const string C_ruleaccountid = "ruleaccountid";
		public const string C_rulename = "rulename";
		public const string C_ruleactive = "ruleactive";
		public const string C_ruleuseand = "ruleuseand";
		public const string C_rulesortorder = "rulesortorder";
		
		public HmRulesTable()
        {
            _tableName = "hm_rules";
        }
		
		protected static HmRulesTable _current;
        public static HmRulesTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new HmRulesTable();

            _current.Add(C_ruleid, new ColumnInfo(C_ruleid,"Ruleid", true, typeof(int)));
            _current.Add(C_ruleaccountid, new ColumnInfo(C_ruleaccountid,"Ruleaccountid", false, typeof(int)));
            _current.Add(C_rulename, new ColumnInfo(C_rulename,"Rulename", false, typeof(string)));
            _current.Add(C_ruleactive, new ColumnInfo(C_ruleactive,"Ruleactive", false, typeof(byte)));
            _current.Add(C_ruleuseand, new ColumnInfo(C_ruleuseand,"Ruleuseand", false, typeof(byte)));
            _current.Add(C_rulesortorder, new ColumnInfo(C_rulesortorder,"Rulesortorder", false, typeof(int)));
			
		}
		
		public ColumnInfo ruleid
        {
            get { return this[C_ruleid]; }
        }
		
		public ColumnInfo ruleaccountid
        {
            get { return this[C_ruleaccountid]; }
        }
		
		public ColumnInfo rulename
        {
            get { return this[C_rulename]; }
        }
		
		public ColumnInfo ruleactive
        {
            get { return this[C_ruleactive]; }
        }
		
		public ColumnInfo ruleuseand
        {
            get { return this[C_ruleuseand]; }
        }
		
		public ColumnInfo rulesortorder
        {
            get { return this[C_rulesortorder]; }
        }
		
		
		
	}
}

